<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function cli() {
				console.log('cli');
			}
			
			function over() {
				console.log('over');
			}
			
			window.onload = function() {
				var btn = document.getElementsByTagName('input')[2];
				btn.onclick = function() {
					console.log('click111');
				}
				btn.onmousemove = function() {
					console.log('mousemove111');
				}
			}
		</script>
	</head>
	<body>
		<input type="button" onclick="alert('Hello')" value="点击1" />
		<input type="button" onclick="cli()" onmouseover='over()' value="点击2" />
		<input type="button" value="点击3"/><br/>
	</body>
</html>
